home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 31
/
Aminet 31 (1999)(Schatztruhe)[!][Jun 1999].iso
/
Aminet
/
dev
/
c
/
GAPLib.lha
/
GAPLib_Beta
/
wizards
/
b2c.c
next >
Wrap
C/C++ Source or Header
|
1999-04-22
|
274b
|
15 lines
#include <stdio.h>
int main(cnt,arg)
int cnt;
char *arg[];
{
int z,length=0;
printf("unsigned char %s[]={",(cnt>1)?arg[1]:"xyzzy");
while(z=getc(stdin),z!=EOF){printf("%d,\n",z);length++;}
printf("0};\n#define\t%s_SIZE\t%d\n",(cnt>1)?arg[1]:"xyzzy",length);
return(0);
}